WPS Office.apk(点击下载) / cll.java


package defpackage;

import com.facebook.ads.AudienceNetworkActivity;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;

/* renamed from: cll  reason: default package */
public final class cll extends cnv {
    private ZipFile ckh = null;
    private String ckn;
    private clk cko;
    public String ckp = null;
    public String ckq = null;
    public clc ckr = clc.INTERNAL;
    public String mId = null;

    cll(ZipFile zipFile, clm clm, String str) {
        this.ckh = zipFile;
        this.ckn = str;
    }

    /* JADX WARNING: Removed duplicated region for block: B:13:0x001f  */
    /* JADX WARNING: Removed duplicated region for block: B:14:? A[ORIG_RETURN, RETURN, SYNTHETIC] */
    private static String fW(String str) {
        String str2;
        if (str != null) {
            try {
                str2 = URLDecoder.decode(str, AudienceNetworkActivity.WEBVIEW_ENCODING);
            } catch (UnsupportedEncodingException e) {
                e.printStackTrace();
                str2 = null;
            } catch (IllegalArgumentException e2) {
                e2.printStackTrace();
                str2 = null;
            } catch (Throwable th) {
                th.printStackTrace();
            }
            return str2 != null ? str : str2;
        }
        str2 = null;
        if (str2 != null) {
        }
    }

    @Override // defpackage.cnv, defpackage.cnz
    public final void J(String str, String str2) {
        if (str.equals("Id")) {
            this.mId = str2;
        } else if (str.equals("Type")) {
            if (!str2.startsWith("http://purl.oclc.org")) {
                this.ckp = str2;
            } else {
                this.ckp = cla.fQ(str2);
            }
        } else if (str.equals("Target")) {
            this.ckq = fW(str2);
        } else if (str.equals("TargetMode") && str2.equals("External")) {
            this.ckr = clc.EXTERNAL;
        }
    }

    public final String apF() {
        String I = cld.I(this.ckn, this.ckq);
        return I.startsWith("/") ? I.substring(1) : I;
    }

    public final clk apG() {
        if (this.cko == null && this.ckr == clc.INTERNAL) {
            String I = cld.I(this.ckn, this.ckq);
            ZipEntry b = clj.b(this.ckh, I);
            if (b == null && I.startsWith("/")) {
                b = clj.b(this.ckh, I.substring(1));
            } else if (b == null && this.ckq.equalsIgnoreCase("sharedStrings.xml") && (b = clj.b(this.ckh, cld.I(this.ckn, "sharedstrings.xml"))) == null) {
                b = clj.b(this.ckh, cld.I(this.ckn, "SharedStrings.xml"));
            }
            if (!(b == null || this.ckp == null)) {
                if (this.ckp.equals(cky.ciV.ciT)) {
                    this.cko = new clf(this.ckh, b);
                } else if (this.ckp.equals(cky.ciW.ciT)) {
                    this.cko = new clh(this.ckh, b);
                } else if (this.ckp.equals(cky.ciX.ciT)) {
                    this.cko = new cli(this.ckh, b);
                } else {
                    this.cko = new clk(this.ckh, b);
                }
            }
        }
        return this.cko;
    }

    public final String toString() {
        return "<Relationship Id=" + this.mId + " Type=" + this.ckp + " Target=" + this.ckq;
    }
}